﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="SaleFinishForm.aspx.cs" Inherits="App_Input_SaleFinishForm" Title="会员移交" %>
<%@ Register TagPrefix="shpm" TagName="TipBar" Src ="~/App/Input/SaleProcessTipBar.ascx" %>
<%@ Import Namespace="Shpm.App.Input.Bean" %>
<%@ Import Namespace="Shpm.System" %>
<%@ Import Namespace="Shpm.App.Commons.Utils" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div id="container">
        <div id="title">
            <ul>
                <li id="Li1" style="display:none;">
                    <asp:LinkButton ID="LinkButton8" OnCommand="lnkTab_Command" CommandName="btn0" runat="server" Enabled="false" Width="105px"><span>新建销售档案</span></asp:LinkButton>
                </li>
                <li id="Li2">
                    <asp:LinkButton ID="LinkButton9" OnCommand="lnkTab_Command" CommandName="btn1" runat="server"><span>销售记录</span></asp:LinkButton>
                </li>
                <li id="Li4">
                    <asp:LinkButton ID="LinkButton11" OnCommand="lnkTab_Command" CommandName="btn3" runat="server" Width="95px"
                        ><span>权益人管理</span></asp:LinkButton>
                </li>
                <li id="Li3">
                    <asp:LinkButton ID="LinkButton10" OnCommand="lnkTab_Command" CommandName="btn2" runat="server"><span>会员管理</span></asp:LinkButton>
                </li>
                <li id="Li6">
                    <asp:LinkButton ID="LinkButton2" OnCommand="lnkTab_Command" CommandName="btn6" runat="server" Width="105px"><span>入住资格审核</span></asp:LinkButton>
                </li>
                <li id="tag5">
                    <asp:LinkButton ID="LinkButton5" OnCommand="lnkTab_Command" CommandName="btn4" runat="server" CssClass="selectli" OnClientClick="return false;"><span class="selectspan">会员入住</span></asp:LinkButton>
                </li>
            </ul>
            <ul>
                <li id="Li8">
                    <asp:LinkButton ID="LinkButton3_4" OnCommand="lnkTab_Command" CommandName="btn5_1"
                               runat="server"><span>会员合同</span>
                    </asp:LinkButton>
                </li>
                <li id="Li5">
                    <asp:LinkButton ID="LinkButton1" OnCommand="lnkTab_Command" CommandName="btn5_2"
                               runat="server" CssClass="selectli" OnClientClick="return false;"><span class="selectspan">会员移交</span>
                    </asp:LinkButton>
                </li>
            </ul>
        </div>
        <div id="content" class="content1">
            <shpm:TipBar runat="server" ID="tipBar" />
            <table width="100%">
                <tr id="MasterMember" runat="server">
                    <td align="center">
                        <table class="table_border_line">
                            <tr>
                                <th align="left" colspan="6" style="text-align: left; height: 15px;">
                                    <script language="javascript">
                                        (new TitleBar('MasterMemberBar', '入住会员信息')).showBar();
                                    </script>

                                </th>
                            </tr>
                        </table>
                        <table class="table_border_line" style="background: ffffff">
                            <tr>
                                <td class="" style="width: 20px; height: 26px">
                                </td>
                                <td align="center" class="" style="font-size:14px;font-weight:600;" colspan="2">
                                    主会员</td>
                                <td align="center" class="" style="font-size:14px;font-weight:600;" colspan="2">
                                    副会员</td>
                                <td align="center" class="" style="font-size:14px;font-weight:600;" colspan="4">
                                    陪住人</td>
                                <td align="center" class="" colspan="1" style="width: 20px; height: 26px">
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 20px; height: 26px;" class="">
                                    </td>
                                <td class="" style="width: 80px; height: 26px" align="right">
                                    会员号：</td>
                                <td id="MasterMemberId" runat="server" class="" style="width: 190px; height: 26px;">
                                    --
                                </td>
                                <td align="right" class="" colspan="1" style="width: 80px; height: 26px;">
                                    会员号：</td>
                                <td id="SecondaryMemberId" runat="server" class="" align="left" colspan="1" style="width: 190px; height: 26px;">
                                    --
                                </td>
                                <td align="right" class="" colspan="1" style="width: 80px; height: 26px;">
                                    编号：</td> 
                                <td id="AccompanyMemberId" runat="server" class="" align="left" colspan="3" style="width: 190px; height: 26px;">
                                    --</td>
                                <td style="width: 20px; height: 26px;" align="center" class="" colspan="1">
                                    </td>
                            </tr>
                            <tr>
                                <td style="width: 20px; height: 26px;" class="">
                                    </td>
                                <td class="" style="width: 80px; height: 26px" align="right">
                                    姓名：</td>
                                <td id="MasterMemberName" runat="server" class="" style="width: 190px; height: 26px;">
                                    --
                                </td>
                                <td align="right" class="" colspan="1" style="width: 80px; height: 26px;">
                                    姓名：</td> 
                                <td id="SecondaryMemberName" runat="server" class="" align="left" colspan="1" style="width: 190px; height: 26px;">
                                    --
                                </td>
                                <td align="right" class="" colspan="1" style="width: 80px; height: 26px">
                                    姓名：</td>
                                <td id="AccompanyMemberName" runat="server" class="" align="left" colspan="3" style="width: 190px; height: 26px">
                                    --</td>
                                <td style="width: 20px; height: 26px;" align="center" class="" colspan="1">
                                    </td>
                            </tr>
                            <tr>
                                <td style="width: 20px; height: 26px;" class="">
                                    </td>
                                <td class="" style="width: 80px; height: 26px" align="right">
                                    性别：</td>
                                <td id="MasterMemberSex" runat="server" class="" style="width: 190px; height: 26px;">
                                    --
                                </td>
                                <td align="right" class="" colspan="1" style="width: 80px; height: 26px;">
                                    性别：</td> 
                                <td id="SecondaryMemberSex" runat="server" class="" align="left" colspan="1" style="width: 190px; height: 26px;">
                                    --
                                </td>
                                <td align="right" class="" colspan="1" style="height: 26px; width: 80px;">
                                    姓名：</td>
                                <td id="AccompanyMemberSex" runat="server" class="" align="left" colspan="3" style="height: 26px; width: 190px;">
                                    --</td>
                                <td style="width: 20px; height: 26px;" align="center" class="" colspan="1">
                                    </td>
                            </tr>
                            <tr>
                                <td style="width: 20px" class="">
                                    </td>
                                <td class="" style="width: 80px; height: 26px" align="right">
                                    身份证：</td>
                                <td id="MasterMemberIdCard" runat="server" class="" style="width: 190px" align="left">
                                    --
                                </td>
                                <td align="right" class="" colspan="1" style="width: 80px">
                                    身份证：</td> 
                                <td id="SecondaryMemberIdCard" runat="server" class="" align="left" colspan="1" style="width: 190px" >
                                    --</td>
                                <td align="right" class="" colspan="1" style="width: 80px">
                                    身份证：</td>
                                <td id="AccompanyMemberIdCard" runat="server" class="" align="left" colspan="3" style="width: 190px">
                                    --</td>
                                <td style="width: 20px" align="center" class="" colspan="1">
                                    </td>
                            </tr>
                            <tr>
                                <td class="" style="width: 20px">
                                </td>
                                <td align="right" class="" style="width: 80px; height: 26px">
                                    入住房间：</td>
                                <td id="LabMemberNo" runat="server" class="" align="left" style="width: 190px">
                                    --</td>
                                <td align="right" class="" colspan="1" style="width: 80px">
                                </td>
                                <td runat="server" align="left" class="" colspan="1" style="width: 190px">
                                </td>
                                <td align="right" class="" colspan="1" style="width: 80px">
                                </td>
                                <td runat="server" align="left" class="" colspan="3" style="width: 190px">
                                </td>
                                <td align="center" class="" colspan="1" style="width: 20px">
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table class="table_border_line">
                            <tr>
                                <th align="left" colspan="6" style="text-align: left;">
                                    <script language="javascript">
                                           (new TitleBar('SearchBar', '房间配置')).showBar();
                                    </script>
                                </th>
                            </tr>
                        </table><table class="table_border_line" style="background: ffffff">
                            <tr>
                                <td style="width: 20px; height: 26px;" class="">
                                </td>
                                <td class="" style="height: 26px" align="right" colspan="8">
                                    <asp:Table CssClass="GridView_table" ID="TblItem" runat="server" EnableViewState="true">
                                        <asp:TableRow>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="160">设施名称</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="120">品牌</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="120">型号</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue" Width="80">数量</asp:TableHeaderCell>
                                            <asp:TableHeaderCell CssClass="GridView_head_grayblue">备注</asp:TableHeaderCell>
                                        </asp:TableRow>
                                    </asp:Table>
                                </td>
                                <td style="width: 20px; height: 26px;" align="center" class="" colspan="1">
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="height: 82px">
                        <table class="table_border_line">
                            <tr>
                                <th align="left" colspan="6" style="text-align: left; height: 15px;">

                                    <script language="javascript">
                                        (new TitleBar('SearchBar', '会员移交')).showBar();
                                    </script>
                                </th>
                            </tr>
                        </table>
                        <table class="table_border_line" style="background: ffffff">
                            <!-- tr>
                                <td style="width: 16px" class="">
                                    &nbsp;</td>
                                <td class="" style="width: 128px; height: 26px">
                                    移交部门：</td>
                                <td class="" id="Td3" runat="server">
                                    <asp:DropDownList ID="ddlGroupId" runat="server" Width="120" />
                                </td>
                                <td colspan="3" align="right" class="">
                                    &nbsp;</td>
                            </tr -->
                            <tr>
                                <td style="width: 16px" class="">
                                    &nbsp;</td>
                                <td class="" style="width: 80px; height: 26px">
                                    接收员工：</td>
                                <td class="" id="Td2" runat="server" style="width: 180px">
                                    <asp:TextBox ID="txtEmpId" runat="server" />
                                    <a href="#" onclick="popupEmployeeSearch('<%=txtEmpId.ClientID %>','txtEmpName')">
                                            <img src="../../images/search.jpg" border="0" /></a>
                                </td>
                                <td id="LabEmpName"  runat="server" colspan="3" align="left" class="" style="width: 150px">
                                </td>
                                <td runat="server" align="left" class="" colspan="1" style="width: 180px">
                        </td>
                                <td runat="server" align="left" class="" colspan="1" style="width:100px">
                                </td>
                                <td runat="server" align="left" class="" colspan="1">

                                <input type="text" id="txtEmpName" onpropertychange="<%=LabEmpName.ClientID %>.innerHTML = this.value" style="display:none"/></td>
                                <td runat="server" align="left" class="" colspan="1" style="width: 16px">
                                    &nbsp; &nbsp;&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td class="" style="width: 16px">
                                </td>
                                <td align="center" class="" colspan="8" style="height: 26px">
                        <asp:Button ID="btnOk" runat="server" Text="移交" OnClientClick="return confirm('是否确认移交入住资料？')"
                            CssClass="button" OnClick="btnOk_Click" Width="75px" /></td>
                                <td runat="server" align="left" class="" colspan="1" style="width: 16px">
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                
                <asp:Repeater ID="Repeater1" runat="server">
                    <HeaderTemplate>
                        <tr>
                            <td>
                                <table class="table_border_line">
                                    <tr>
                                        <th align="left" colspan="6" style="text-align: left;">
                                            <script language="javascript">
                                                (new TitleBar('SearchBar', '移交历史')).showBar();
                                            </script>

                                        </th>
                                    </tr>
                                </table>
                                <table class="GridView_table">
                                    <tr>
                                        <td class="GridView_head_grayblue"><b>移交员工</b></td>
                                        <td class="GridView_head_grayblue"><b>移交日期</b></td>
                                        <td class="GridView_head_grayblue"><b>接收员工</b></td>
                                        <td class="GridView_head_grayblue"><b>接收日期</b></td>
                                    </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%# (((SaleFinishBean)Container.DataItem).FromEmployeeName)%>(<%# (((SaleFinishBean)Container.DataItem).FromEmployeeId)%>)
                            </td>
                            <td align="center">
                                <%# (((SaleFinishBean)Container.DataItem).DeliverDate==null)?Constants.EMPTY_STRING:DateUtils.convertToString(((SaleFinishBean)Container.DataItem).DeliverDate.Value)%>
                            </td>
                            <td align="center">
                                <%# (((SaleFinishBean)Container.DataItem).ToEmployeeName)%>(<%# (((SaleFinishBean)Container.DataItem).ToEmployeeId)%>)
                            </td>
                            <td align="center">
                                <%# (((SaleFinishBean)Container.DataItem).CheckInDate == null) ? Constants.EMPTY_STRING : DateUtils.convertToString(((SaleFinishBean)Container.DataItem).CheckInDate.Value)%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table> </td> </tr>
                    </FooterTemplate>
                </asp:Repeater>
                
                <tr>
                    <td align="center">
                        &nbsp;</td>
                </tr>
            </table>
        </div>
    </div>

</asp:Content>

